from django.contrib import admin

# Register your models here.
from apps.user.models import UserProfile, VerifyCode


@admin.register(UserProfile)
class UserAdmin(admin.ModelAdmin):
    list_display = ['username', 'phone', 'email']
    search_fields = ['name', 'username', 'phone', 'email', 'add_time']


@admin.register(VerifyCode)
class CodeAdmin(admin.ModelAdmin):
    list_display = ['code', 'phone', 'add_time', 'count']
    search_fields = ['phone', 'count']


admin.site.site_header = '后台管理'
